import { constantRoutes } from "@/router"
export default {
  namespaced:true,
  state:{
    // 先以静态路由作为菜单数据的初始值
    menuList:[...constantRoutes]
  },
  mutations:{
    setMenuList(state,asyncRoutes) {
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }
}